package service;

import org.apache.ibatis.annotations.Param;
import pojo.Books;

import java.util.List;

public interface BookService {
    //add
    int addBook(Books books);
    //delete
    int deleteBookById(int id);
    //update
    int updateBook(Books books);
    //findOne
    Books queryBookById(int id);
    //findAll
    List<Books> queryAllBooks();
    //查找
    Books queryBOokName(String bookName);
}
